package com.iss.card.model;

import java.io.Serializable;

import android.util.Log;

import com.iss.card.webservice.BaseModel;

public class UnpayFormItemModel extends BaseModel implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5607440990998093030L;

	
	/**
	 * orderId: order id
	 * consumedStoreName: store name where user consume
	 * orderDate: create date for this order
	 * consumeNumber: how many products have been saled in this order
	 * orderAmount: how much for this order
	 * usePoints: how many points have been used for this order
	 * useNumber: how many times have been used for this order
	 * discount: discount for this order
	 * useValue: how much stored-value have been used for this order
	 * useCash: how much cash have been used for this order
	 */
	
	
	/**
	 * 
	 * 
05-20 01:59:50.753: D/kitexy debug(5565): unpay item tempString ===> data
05-20 01:59:50.753: I/kitexy debug(5565): unpay item value ===>     
05-20 01:59:50.763: D/kitexy debug(5565): unpay item tempString ===> orderId
05-20 01:59:50.763: I/kitexy debug(5565): unpay item value ===> 30
05-20 01:59:50.763: D/kitexy debug(5565): unpay item tempString ===> consumedStoreName
05-20 01:59:50.763: I/kitexy debug(5565): unpay item value ===> 哥伦布广场店
05-20 01:59:50.772: D/kitexy debug(5565): unpay item tempString ===> orderDate
05-20 01:59:50.772: I/kitexy debug(5565): unpay item value ===> 2013-05-10 16:25:13
05-20 01:59:50.772: D/kitexy debug(5565): unpay item tempString ===> orderPayer
05-20 01:59:50.772: I/kitexy debug(5565): unpay item value ===> 王霸
05-20 01:59:50.772: D/kitexy debug(5565): unpay item tempString ===> consumeNumber
05-20 01:59:50.772: I/kitexy debug(5565): unpay item value ===> 1
05-20 01:59:50.772: D/kitexy debug(5565): unpay item tempString ===> orderAmount
05-20 01:59:50.785: I/kitexy debug(5565): unpay item value ===> 200.00
05-20 01:59:50.785: D/kitexy debug(5565): unpay item tempString ===> usePoints
05-20 01:59:50.793: I/kitexy debug(5565): unpay item value ===> 0
05-20 01:59:50.793: D/kitexy debug(5565): unpay item tempString ===> discount
05-20 01:59:50.803: I/kitexy debug(5565): unpay item value ===> 0.80
05-20 01:59:50.803: D/kitexy debug(5565): unpay item tempString ===> useValue
05-20 01:59:50.812: I/kitexy debug(5565): unpay item value ===> 100.00
05-20 01:59:50.812: D/kitexy debug(5565): unpay item tempString ===> useCash
05-20 01:59:50.812: I/kitexy debug(5565): unpay item value ===> 100.00
	 */
	
	private static final String ORDER_ID = "orderId";
	private static final String CONSUMED_STORE_NAME = "consumedStoreName";
	private static final String ORDER_DATE_STRING = "orderDate";
	private static final String ORDER_PAYER = "orderPayer";
	private static final String CONSUME_NUMBER = "consumeNumber";
	private static final String ORDER_AMOUNT = "orderAmount";
	private static final String USE_POINTS = "usePoints";
	private static final String DISCOUNT = "discount";
	private static final String USE_VALUE = "useValue";
	private static final String USE_CASH = "useCash";
	
	private String orderId;
	private String consumedStoreName;
	private String orderDate;
	private String orderPayer;
	private String consumeNumber;
	private String orderAmount;
	private String usePoints;
	private String discount;
	private String useValue;
	private String useCash;
	
	@Override
	public void addValues(String tempString, String valueString,
			BaseModel baseMode) {
		if(ORDER_ID == tempString){
			setOrderId(valueString);
		}else if(CONSUMED_STORE_NAME == tempString){
			setConsumedStoreName(valueString);
		}else if(ORDER_DATE_STRING == tempString){
			setOrderDate(valueString);
		}else if(CONSUME_NUMBER == tempString){
			setConsumeNumber(valueString);
		}else if(ORDER_AMOUNT== tempString){
			setOrderAmount(valueString);
		}else if(USE_POINTS == tempString){
			setUsePoints(valueString);
		}else if(ORDER_PAYER == tempString){
			setOrderPayer(valueString);
		}else if(DISCOUNT == tempString){
			setDiscount(valueString);
		}else if(USE_VALUE == tempString){
			setUseValue(valueString);
		}else if(USE_CASH == tempString){
			setUseCash(valueString);
		}
		baseMode = this;
	}
	
	public void setOrderId(String id){
		this.orderId = id;
	}
	public String getOrderId(){
		return orderId;
	}
	
	public void setConsumedStoreName(String name){
		this.consumedStoreName = name;
	}
	public String getConsumedStroeName(){
		return consumedStoreName;
	}
	
	public void setConsumeNumber(String consumeNumber){
		this.consumeNumber = consumeNumber;
	}
	public String getConsumeNumber(){
		return consumeNumber;
	}
	
	public void setOrderAmount(String orderAmount){
		this.orderAmount = orderAmount;
	}
	public String getOrderAmount(){
		return orderAmount;
	}
	
	public void setUsePoints(String usePoints){
		this.usePoints = usePoints;
	}
	public String getUsePoints(){
		return usePoints;
	}
	
	public void setOrderPayer(String orderPayer){
		this.orderPayer = orderPayer;
	}
	public String getOrderPayer(){
		return orderPayer;
	}
	
	public void setDiscount(String discount){
		this.discount = discount;
	}
	public String getDiscount(){
		return discount;
	}
	
	public void setUseValue(String useValue){
		this.useValue = useValue;
	}
	public String getUseValue(){
		return useValue;
	}
	
	public void setUseCash(String useCash){
		this.useCash = useCash;
	}
	public String getUseCash(){
		return useCash;
	}
	
	public void setOrderDate(String date){
		this.orderDate = date;
	}
	public String getOrderDate(){
		return orderDate;
	}
	
	

}
